package com.framework.main.sys.bd.service;
import java.util.List;
import java.util.Map;

import com.framework.base.constant.WebConstants;
import com.framework.base.service.BaseServiceImp;
import com.framework.main.sys.bd.dao.SysBdDao;

/**
 * Title:首页 >> 系统管理 >> 基础数据子项管理 (ServiceImp)
 * Description:处理基础数据子项业务
 * tabaleName(对应的表名):SYS_BD
 * Company: www.51wuxia.com
 * @author：www.51wuxia.com
 * @version 1.0
 */
public class SysBdServiceImp extends BaseServiceImp implements SysBdService{
	private SysBdDao bdDao;
	public SysBdDao getBdDao() {
		return bdDao;
	}
	public void setBdDao(SysBdDao bdDao) {
		this.bdDao = bdDao;
	}
	
	/**
	 * 拼接SQL查询条件
	 */
	@Override
	public String populatePageHQL(Map<String,Object> paramsMap, String orderByFields,
			String orderType) throws Exception {
		return super.populatePageHQL(paramsMap, orderByFields, orderType);
	}

	/**
	 * 不分页查询
	 */
	public List<?> toViewList(String id) throws Exception{
		List<?> list=null;
		list=this.getBaseDao().queryForList("toList", " where  typeIdf='"+id+"' and statusf=0 order by " + WebConstants.DEFAULTORDERFIDS);
	
		return list;
	}
	
	public List<?> toListData(String name) throws Exception{
		return this.getBaseDao().queryForList("getListData", name);
	}
	@Override
	public List<?> queryForSelectList(String typeidf)
			throws Exception {
		return  this.getBdDao().queryForSelectList(typeidf);
	}

}
